package cn.yunbamboos.media.core;

public class PlayProxy {

    private String app;
    private String stream;
    private String url;
    // 0 本地文件 1 其他url
    private int type;

    public boolean isLocalFile() {
        return type == 0;
    }

    public String getApp() {
        return app;
    }

    public String getStream() {
        return stream;
    }

    public String getUrl() {
        return url;
    }

    public int getType() {
        return type;
    }

    public static class Builder {

        private final PlayProxy proxy = new PlayProxy();

        public Builder app(String app) {
            proxy.app = app;
            return this;
        }

        public Builder stream(String stream) {
            proxy.stream = stream;
            return this;
        }

        public Builder url(String url) {
            proxy.url = url;
            return this;
        }

        public Builder type(int type) {
            proxy.type = type;
            return this;
        }

        public PlayProxy build() {
            return proxy;
        }
    }


}
